package com.shop.om.sysUser.service.impl;

import com.github.pagehelper.Page;
import com.shop.om.model.sysUser.SysUserEntity;
import com.shop.om.model.sysUser.UserWindowDto;
import com.shop.om.sysUser.dao.SysUserDao;
import com.shop.om.sysUser.service.SysRoleService;
import com.shop.om.sysUser.service.SysUserRoleService;
import com.shop.om.sysUser.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author cjt
 * @version 1.0.0
 * @description 系统用户
 * @date 2020/7/14  11:11
 * @Version v1.0
 **/
@Service
public class SysUserServiceImpl implements SysUserService {

    @Resource
    private SysUserDao sysUserDao;

    @Resource
    private SysUserRoleService sysUserRoleService;
    @Resource
    private SysRoleService sysRoleService;

    @Override
    public List<String> queryAllPerms(Long userId) {
        return null;
    }

    @Override
    public List<Long> queryAllMenuId(Long userId) {
        return sysUserDao.queryAllMenuId(userId);
    }

    @Override
    public SysUserEntity queryByUserName(String username) {
        return null;
    }

    @Override
    public SysUserEntity queryObject(Long userId) {
        return null;
    }

    @Override
    public List<SysUserEntity> queryList(Map<String, Object> map) {
        return null;
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return 0;
    }

    @Override
    public void save(SysUserEntity user) {

    }

    @Override
    public void update(SysUserEntity user) {

    }

    @Override
    public void deleteBatch(Long[] userIds) {

    }

    @Override
    public int updatePassword(Long userId, String password, String newPassword) {
        return 0;
    }

    @Override
    public Page<UserWindowDto> findPage(UserWindowDto userEntity, int pageNum) {
        return null;
    }
}
